package day02;

import java.util.Date;

/**
 * Created by Administrator on 2023/6/30 0030.
 */
public class FunctionPassByReference {
    public static void main(String[] args) {
        Date d = new Date();
        setYear(d, 2025-1900);
        System.out.println(d.toLocaleString());
    }


    public static void setYear(Date d, int year) {
        d.setYear(year);
    }
}
